package me.szp;

/**
 * 座位模型
 *
 * @author 孙志鹏
 * @since 2021/6/25 20:31
 */
public class Seat {

    /**
     * 行
     */
    private Integer row;

    /**
     * 列
     */
    private Integer col;

    /**
     * 值
     */
    private Integer value;

    /**
     * 位置
     */
    private Location location;

    public Seat(Integer row, Integer col, Integer value, Location location) {
        this.row = row;
        this.col = col;
        this.value = value;
        this.location = location;
    }

    public Integer getRow() {
        return row;
    }

    public void setRow(Integer row) {
        this.row = row;
    }

    public Integer getCol() {
        return col;
    }

    public void setCol(Integer col) {
        this.col = col;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return String.format("第%s排,第%s列,%s", row, col, location.getDesc());
    }
}
